package com.mini.controller;

import lombok.extern.slf4j.Slf4j;
import org.aopalliance.intercept.MethodInterceptor;
import org.aopalliance.intercept.MethodInvocation;

/**
 * @author: anjl
 * @description:
 * @data: 2021/4/15
 **/
@Slf4j
public class LogInterceptor implements MethodInterceptor {
    @Override
    public Object invoke(MethodInvocation invocation) throws Throwable {
        log.info("前-------");
        Object proceed = invocation.proceed();
        log.info("后-------");
        return proceed;
    }
}
